package com.pureut.production.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.production.domain.MaterialFinished;
import com.pureut.production.domain.dto.MaterialFinishedDto;
import com.pureut.production.domain.dto.MaterialInfoDto;
import com.pureut.production.domain.vo.MaterialInfoVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: CM
 * @date: 2023/2/28  13:51
 */
@Mapper
public interface MaterialFinishedMapper extends BaseMapper<MaterialFinished> {

    /**
     * 查询物料信息
     * @param materialInfoVo
     * @return
     */
    List<MaterialInfoDto> getInfo(MaterialInfoVo materialInfoVo);

    /**
     * 根据物料编码获取信息
     */
    MaterialFinishedDto getMaterialFinishedByCode(String materialCode);
}
